package cn.jsj.hzu.qm.facecloud.user.pojo;

public class Key {
	private int id;
	private int app_id;
	private String key;
	private int count;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getApp_id() {
		return app_id;
	}
	public void setApp_id(int app_id) {
		this.app_id = app_id;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + app_id;
		result = prime * result + count;
		result = prime * result + id;
		result = prime * result + ((key == null) ? 0 : key.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Key other = (Key) obj;
		if (app_id != other.app_id)
			return false;
		if (count != other.count)
			return false;
		if (id != other.id)
			return false;
		if (key == null) {
			if (other.key != null)
				return false;
		} else if (!key.equals(other.key))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Key [id=" + id + ", app_id=" + app_id + ", key=" + key + ", count=" + count + "]";
	}
	public Key(int id, int app_id, String key, int count) {
		super();
		this.id = id;
		this.app_id = app_id;
		this.key = key;
		this.count = count;
	}
	public Key() {
		super();
	}
	
	
	
}
